﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Screenshot2Disk.Localization;

namespace Screenshot2Disk
{
    public class Msg
    {
        public static void ShowError(Exception ex)
        {
            MessageBox.Show(ex.Message + Environment.NewLine + Environment.NewLine + ex.StackTrace, Strings.ErrorTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
        }

        public static void ShowError(string message)
        {
            MessageBox.Show(message, Strings.ErrorTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
        }

        public static void ShowOk(string text)
        {
            MessageBox.Show(text, "", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
    }
}
